﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryui")
    @Styles.Render(" ~/Content/themes/base/css")
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/rated")
    @{
        // This will be read out from the Http request header when live!
        // but for now, just store it in the Web.Config 
        var domainFolder = System.Configuration.ConfigurationManager.AppSettings["domain"];
    }

   
    <link href="~/Content/@domainFolder/site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="content-wrapper" class="clearfix">
        <div id="header" class="clearfix">
            @Html.Partial("_LoginPartial")
            <div id="sociallinks">
                @{Html.RenderPartial("SocialLinks", new Rated.Website.Models.SocialLinksViewModel());}
            </div>
            <div id="headerDetails" class="clearfix">
                @{Html.RenderPartial("Header", new Rated.Website.Models.HeaderViewModel());}
            </div>
        </div>
        <div id="navigation">
            @{Html.RenderPartial("Navigation", new Rated.Website.Models.NavigationViewModel());}
        </div>
        <div id="searchbox">
            @{
                using (Html.BeginForm("Results", "Search", null, FormMethod.Post, null))
                {
                @Html.TextBox("searchTerm", "", new { @class = "textbox" });
                <input type="submit" value="Go" />
                }
            }
        </div>
        <div id="content" class="clearfix">
            @*<div id="sidebar">
                @RenderSection("Sidebar", false)
            </div>*@
            <div id="bodyContent" class="clearfix">
                @RenderBody()
            </div>
        </div>
        <div id="footer">
            Footer
        </div>
    </div>
    @RenderSection("scripts", required: false)
</body>
</html>
